From: Stefan Agner Date: Tue, 14 Aug 2018 10:38:15 +0000 (+0200) Subject: Avoid race condition in case tests directory does not exist X-Git-Tag: archive/raspbian/2022.1-3+rpi1~1^2~4^2~20^2~16 X-Git-Url: https://dgit.raspbian.org/%22http:/www.example.com/cgi/%22https:/www.github.com/%22bookmarks:///%22http:/www.example.com/cgi/%22https:/www.github.com/%22bookmarks:/?a=commitdiff_plain;h=4a389b308294c0dd6a82578ad320703b268f16ba;p=ostree.git Avoid race condition in case tests directory does not exist Make sure the tests directory exists before symlinking files into it. Closes: #1703 Closes: #1704 Approved by: cgwalters --- diff --git a/Makefile-tests.am b/Makefile-tests.am index 85995aa6..3323c5f3 100644 --- a/Makefile-tests.am +++ b/Makefile-tests.am @@ -360,7 +360,8 @@ EXTRA_DIST += \ $(NULL) tests/libreaddir-rand.so: Makefile - $(AM_V_GEN) ln -fns ../.libs/libreaddir-rand.so tests + mkdir -p tests/ + $(AM_V_GEN) ln -fns ../.libs/libreaddir-rand.so tests/ ALL_LOCAL_RULES += tests/libreaddir-rand.so CLEANFILES += tests/libreaddir-rand.so tests/ostree-symlink-stamp \ tests/ostree-prepare-root-symlink-stamp tests/ostree-remount-symlink-stamp \